Skip to content

Refactor DamerauLevenshteinDistance and TextStringBuilder internals for duplication#739

Merged
garydgregory merged 1 commit into
apache:masterfrom
aaaZayne:clone-revise
Jun 12, 2026
Merged

Refactor DamerauLevenshteinDistance and TextStringBuilder internals for duplication#739
garydgregory merged 1 commit into
apache:masterfrom
aaaZayne:clone-revise

Conversation

@aaaZayne

@aaaZayne aaaZayne commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

1.Extract duplicated range validation in TextStringBuilder into a new private helper validateRange() .

2.Extract duplicated logic into calculateCost() and reuse it.

  • Run a successful build using the default Maven goal with mvn; that's mvn on the command line by itself.

@garydgregory garydgregory changed the title introduce private methods to remove clones Refactor DamerauLevenshteinDistance and TextStringBuilder internals for duplication Jun 2, 2026
@garydgregory garydgregory merged commit fa7c075 into apache:master Jun 12, 2026
9 checks passed
garydgregory added a commit that referenced this pull request Jun 12, 2026
duplication (#739).

- Sort members
- Reduce vertical whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants